<section class="search">
  <header>
    <h1>Recherche</h1>
  </header>

  <%= form_tag(new_search_path, :method => "get") do %>

  <div>
    <h2>Je recherche</h2>

    <%= text_field_tag(:labels) %>

    <%= radio_button_tag(:type, "possession") %>
    <%= label_tag(:type_possession, "un bien") %>
    <%= radio_button_tag(:type, "service") %>
    <%= label_tag(:type_service, "un service") %>
  </div>
  <div>
    <h2>Parmi les catégories</h2>

    <% Board.all.each do |board| %>
      <p>
      <%= check_box_tag(:board, board.id) %>
        <%= label_tag(:board, board.label) %>
      </p>
    <% end %>

    <%= submit_tag "Rechercher" %>
  </div>

  <% end %>

</section>
